package Day11.Ti.ZiJie;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Ti02 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("H:\\itheima\\a.txt");
        FileOutputStream fos = new FileOutputStream("H:\\itheima\\b.txt");
        int b;
        byte[] bytes = new byte[1024];
        while ((b=fis.read(bytes))!=-1){
            fos.write(bytes,0,b);

        }
        fis.close();
        fos.close();
    }
}
